<template>
  <div class="page follow">
    <div id="map" class="map"></div>
    <div class="page-container">
      <el-row :gutter="15" type="flex" style="width: 100%;height: 100%;margin: 0">
        <el-col :span="7" class="col">
          <el-row class="row">
            <Card title="重点人员态势总览">
              <KeyPersonnel />
            </Card>
          </el-row>
          <el-row class="row">
            <Card title="异常行为类型">
              <AbnormalBehaviorType />
            </Card>
          </el-row>
        </el-col>
        <el-col :span="10" class="col">
          <div class="number-block">
            <TopNumber />
          </div>
          <el-row class="row">
            <Card title="管控人员增长趋势">
              <ManageTheGrowthTrend />
            </Card>
          </el-row>
        </el-col>
        <el-col :span="7" class="col">
          <el-row class="row">
            <Card title="近期走访记录">
              <RecentInterviewRecord />
            </Card>
          </el-row>
          <el-row class="row">
            <Card title="管控效能统计">
              <ControlEnergyEfficiency />
            </Card>
          </el-row>
        </el-col>
        <div class="map">
          <FollowMap></FollowMap>
        </div>
      </el-row>
    </div>
  </div>
</template>
<script>
import Card from '@/components/Card.vue'
import TopNumber from '@/components/Follow/TopNumber.vue'
import KeyPersonnel from '@/components/Follow/KeyPersonnel.vue'
import AbnormalBehaviorType from '@/components/Follow/AbnormalBehaviorType.vue'
import ManageTheGrowthTrend from '@/components/Follow/ManageTheGrowthTrend.vue'
import RecentInterviewRecord from '@/components/Follow/RecentInterviewRecord.vue'
import ControlEnergyEfficiency from '@/components/Follow/ControlEnergyEfficiency.vue'
import FollowMap from '@/components/Follow/FollowMap.vue'

export default {
  components: { FollowMap, ControlEnergyEfficiency, RecentInterviewRecord, ManageTheGrowthTrend, AbnormalBehaviorType, KeyPersonnel, TopNumber, Card }

}
</script>
<style lang="scss" scoped>
.page.follow{
  .map{
    width: 100%;
    height: calc(100% - 60px);
    z-index: 0;
    position: absolute;
    left: 0;
    top: 60px;
  }
  .page-container{
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    .map{
      width: 50%;
      height:85%;
      z-index: 1;
      position: absolute;
      transform: translate(-50%,0);
      left: 50%;
      top: -85px;
      &::before{
        position: absolute;
        content: '';
        inset: 0;
        z-index: 10;
        pointer-events: none;
        box-shadow: inset 0 0 20px 50px rgba(3, 27, 55, 0.9);
      }
    }
    .col{
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
      position: relative;
      .row{
        width: 100%;
        height: calc(100%/3 - 10px);
        z-index: 10;
        position: relative;
      }
    }
    .col:nth-child(2){
      justify-content: flex-end;
    }
    .col:nth-child(1),.col:nth-child(3){
      .row:nth-child(1){
        height: calc(100%/3*2 - 10px);
      }
      .row:nth-child(2){
        height: calc(100%/3*1 - 10px);
      }
    }
    .number-block{
      position: absolute;
      width: 100%;
      height: 100px;
      left: 0;
      top: 0;
      z-index: 12;
    }
  }
}
</style>
